-- || Created by Revelse

LoginRegister = inherit(Singleton)

function LoginRegister:constructor()

end

function LoginRegister:sendPlayerTo(player)
	local isRegistered = #mysql:query("SELECT * FROM playerData WHERE name = ?",getPlayerName(player)) > 0 or false
	
	if isRegistered then
		player:triggerEvent("showLogin")
	else
		player:triggerEvent("showRegister")
	end
end

function LoginRegister:destructor()

end